﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Backstage.Valickets
{
    /// <summary>
    /// BS_VailTicket
    /// </summary>
    [Table("BS_VailTicket")]
    public class BS_VailTicket
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 优惠券类型
        /// </summary>
        public int Ticket_Type { get; set; } = 0;

        /// <summary>
        /// 标题
        /// </summary>
        public String Ticket_Title { get; set; }

        /// <summary>
        /// 有效期结束时间
        /// </summary>
        public DateTime? Ticket_EndTime { get; set; }

        /// <summary>
        /// 代金金额
        /// </summary>
        public Decimal Ticket_Amount { get; set; }

        /// <summary>
        /// 背景图片
        /// </summary>
        public String Ticket_BackImg { get; set; }

        /// <summary>
        /// 有效天数
        /// </summary>
        public Int32? Ticket_VailDay { get; set; } = 3;

        /// <summary>
        /// 兑换积分
        /// </summary>
        public Int32? Ticket_ChangePoint { get; set; }

        /// <summary>
        /// 最小使用金额
        /// </summary>
        public Decimal? Ticket_UseMoney { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Note { get; set; }

        /// <summary>
        /// 使用说明
        /// </summary>
        public String Ticket_Abstract { get; set; }

        /// <summary>
        /// 保留1
        /// </summary>
        public String Ticket_KeepOne { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public Boolean? State { get; set; } = true;

    }
}